<!DOCTYPE html >
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>

欢迎用户： <span th:text="${session.SPRING_SECURITY_CONTEXT.authentication.principal.username}"></span>
&#12288;
<form th:action="@{/logout}" method="post">
    <input type="submit"  value="退出登录"></input>
</form>



</body>
</html>